package com.hjx.movie.core.system.service.admin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjx.movie.persistence.system.model.IvyUser;

import java.sql.SQLException;
import java.sql.SQLIntegrityConstraintViolationException;
import java.util.List;

/**
 * <p>Title:</p>
 * <p>Description:</p>
 *
 * @author hjx
 * @date 2020/12/24 - 18:24
 */
public interface IUserService extends IService<IvyUser> {
    boolean insertUser(IvyUser user);
    boolean updateUser(IvyUser user);
    boolean deleteUser(Long userId);
    boolean adminUpdatePassword(Long adminId,String adminPassword,Long userId,String password);
    boolean userUpdatePassword(Long userId,String oldPassword,String password);
    IvyUser getById(String uid);
    List<IvyUser> list();

    List<IvyUser> queryUserLike(String roleLike);

    String getUserHeadRealPath(Long id);

}
